@REM  $Id: 04-get-data.bat 103 2008-02-09 12:12:28Z honghunter $

if "%1"=="sub1" goto sub1

IF "%BATCH_WS%"=="" CALL env_setting.bat

IF NOT EXIST "%CACHE_DIR%\cutbody.pl" COPY %BATCH_WS%\cutbody.pl %CACHE_DIR%\cutbody.pl

ECHO.>%CACHE_DIR%\data.txt
:main

FOR /L %%A IN (1,1,%CHECK_PAGE%) DO call %BATCH_WS%\04-get-data.bat sub1 %%A


goto :eof

:sub1

SET PAGEID=%2
CALL 02-list2url.bat %2
sleep 4s

goto :eof

:eof
